//
//  CQNomalCell.swift
//  swift-weibo
//
//  Created by 陈乾 on 15/11/1.
//  Copyright © 2015年 陈乾. All rights reserved.
//

import UIKit

class CQNomalCell: CQHomeTableViewCell {

    override func prepareUI() {
        //切记一定要记得父类的prepareUI
        super.prepareUI()
        
        //图片视图的约束 并拿到所有的约束
        let cons = pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: contentLabel, size: CGSizeMake(0, 0), offset: CGPointMake(0, 8))
        //取出宽度约束
        pictureConsWidth = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Width)
        
        //取出高度约束
        pictureConsHeight = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Height)

        
    }

}
